<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <h2>{{fullName}}</h2>
  <h2>{{firstName}}</h2>
</div>
  <script src="../../../project_practice/lunbotu/vue.js"></script>
  <script>
    const app = new Vue({
      el:'#app',
      data:{
        message:"你好啊！！",
        firstName: "haha",
        finalName: "he"
      },
      //计算属性一般只有get方法，只读属性
      computed:{
        fullName:{
          get:function() {
            return this.firstName + " " + this.finalName;
          }
        }
      }
    })
  </script>
</body>
</html>